home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / fputs.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PUTS(3)             MINTLIB LIBRARY FUNCTIONS             PUTS(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        puts, fputs - put a string on a stream
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <stdio.h>
  12.  
  13.        int puts(const char *s);
  14.  
  15.        int fputs(const char *s, FILE *stream);
  16.  
  17. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  18.        puts  writes  the  null-terminated string pointed to by s,
  19.        followed by a new-line character, to the  standard  output
  20.        stream stdout.
  21.  
  22.        fputs writes the null-terminated string pointed to by s to
  23.        the named output file stream.
  24.  
  25.        Neither function writes the terminating null character.
  26.  
  27. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  28.        f✓fe✓er✓rr✓ro✓or✓r(✓(3✓3)✓),✓, f✓fo✓op✓pe✓en✓n(✓(3✓3)✓),✓, f✓fr✓re✓ea✓ad✓d(✓(3✓3)✓),✓, p✓pr✓ri✓in✓nt✓tf✓f(✓(3✓3)✓),✓, p✓pu✓ut✓tc✓c(✓(3✓3)✓)
  29.  
  30. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  31.        These routines return EOF on error.  Otherwise, the number
  32.        of bytes written is returned.
  33.  
  34. N✓NO✓OT✓TE✓E
  35.        puts appends a new-line character while fputs does not.
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.